package com.ebupt.login

import com.ebupt.common.net.RetrofitManager
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.bind
import org.koin.dsl.module

var loginmodule = module() {

    single { RetrofitManager.initConfig(baseUrl = "https://www.wanandroid.com/").getService<ILoginService>(ILoginService::class.java) }

    single<ILoginRepo> {
        LoginRepo(get())
    } bind ILoginRepo::class

    viewModel { LoginViewModel(get()) }
}